import { http } from "@/utils/http";

/** 获取订单信息 */
export function getChannelRechargeOrderDetail(
  id: string,
  data?: object
): Promise<ChannelRechargeOrderDetailInfoData> {
  return http.request({
    url: `/userCenter/getChannelRechargeOrderDetail/${id}`,
    method: "post",
    data
  });
}
/** 订单信息 */
export interface ChannelRechargeOrderDetailInfoData {
  rechargeProdCover: string;
  rechargeProdName: string;
  recordNo: string;
  payTime: string;
  channelProdName: string;
  channelProdCover: string;
  createTime: string;
  paymentMethod: number;
  price: number;
  quantity: number;
  status: number;
  comboType: number;
  payMoney: number;
  orderTime: string;
  channelType: number;
  rechargeAssetInfoVoList: RechargeAssetInfoData[]
}
/** 获取订单信息 */
export function getRechargeOrderDetail(
  id: string,
  data?: object
): Promise<RechargeOrderDetailInfoData> {
  return http.request({
    url: `/userCenter/getRechargeOrderDetail/${id}`,
    method: "post",
    data
  });
}

/** 订单信息 */
export interface RechargeOrderDetailInfoData {
  channelProdName: string;
  channelProdCover: string;
  rechargeProdCover: string;
  rechargeProdName: string;
  price: number;
  quantity: number;
  status: number;
  comboType: number;
  payMoney: number;
  orderTime: string;
  createTime: string;
  channelType: number;
  orderNo: string;
  rechargeAssetInfoVoList: RechargeAssetInfoData[];
  payTime: string;
  paymentMethod: number;
}
/** 充值信息 */
export interface RechargeAssetInfoData {
  assetType: number;
  assetAmount: number;
}
